﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
    WebBags.DBWebBagsDataContext db = new WebBags.DBWebBagsDataContext();
    List<WebBags.Category> lst = db.Categories.ToList();
    int i = 0;
    string strLang = System.Globalization.CultureInfo.CurrentCulture.DisplayName.Substring(0, 1).ToLower();
    foreach (WebBags.Category c in lst)
    {
        if (i == 0)
        {
            i = 1;
%>
<li class="color">
    <%= Html.ActionLink( (strLang=="v")?   c.Name_vn: c.Name_en,"listproduct",new {id=c.ID}) %>
</li>
<%                                
    }
        else
        {
            i = 0;
%>
<li>
    <%= Html.ActionLink((strLang=="v")? c.Name_vn: c.Name_en,"listproduct",new {id=c.ID}) %></li>
<%
    }
    } %>
